const express = require('express')
const router = express.Router()
const categoryController = require('../controller/categoryController')

router.get('/category/:level', categoryController.CategoryList)
router.get('/category/id/:cid', categoryController.CategoryById)
router.post('/category', categoryController.CategoryAdd)
router.delete('/category/:cid', categoryController.CategoryDelete)
router.put('/category/:cid/', categoryController.CategoryEdit)
router.put('/category/:cid/status/:value', categoryController.CategoryEditStatus)


module.exports = router
